# Create your views here.
from django.shortcuts import get_object_or_404, render_to_response
from projects.models import Feature, TechnicalArea, Release

def index(request, id):
    return render_to_response('delivered/index.html')

def release(request, id):
    obj = get_object_or_404(Release, pk=id)
    return render_to_response('delivered/release.html', {'release' : obj})

def feature(request, id):
    obj = get_object_or_404(Feature, pk=id)
    return render_to_response('delivered/feature.html', {'feature' : obj})

def techarea(request, id):
    obj = get_object_or_404(TechnicalArea, pk=id)
    return render_to_response('delivered/techarea.html', {'techarea' : obj})